package com.oa.modules.approvalsec1.service.impl;

import cn.hutool.http.HttpRequest;
import com.google.gson.Gson;
import com.oa.common.utils.AppUtils;
import com.oa.common.utils.Constant;
import org.springframework.stereotype.Service;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.TreeMap;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.common.utils.PageUtils;
import com.oa.common.utils.Query;

import com.oa.modules.approvalsec1.dao.CloudVideoDao;
import com.oa.modules.approvalsec1.entity.CloudVideoEntity;
import com.oa.modules.approvalsec1.service.CloudVideoService;

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;


@Service("cloudVideoService")
public class CloudVideoServiceImpl extends ServiceImpl<CloudVideoDao, CloudVideoEntity> implements CloudVideoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        params.put("status", Constant.YES_OR_NO.YES.getValue());
        IPage page= AppUtils.getPage(new Query<CloudVideoEntity>(), params);
        return AppUtils.setPage(page, baseMapper.findPage(params), baseMapper.findRecords(page, params));
    }


}
